package com.qidianit.mes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @ Description:
 * @ Author:WuJingLei
 * @ Date: 2025/9/20 -14:00
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ProductionOrder {
    private Long id;
    private String productionOrderCode;
    private String productionOrderName;
    private Long productionOrderSource;
    private Long productionOrderType;
    private Long productionOrderStatus;
    private String orderCode;
    private String materialCode;
    private String customerCode;
    private String supplierCode;
    private Long productionOrderQuantity;
    private Long finishQuantity;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"  )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime requestDate;
    private Integer status;
    private String qrCodeUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"  )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8"  )
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private Integer updatorId;
    private Integer creatorId;
    private Integer deleteFlag;
    private String remark;

    //瞬时
    private String customerName;
    private String materialName;
    private SysDictData typeDictData;
    private SysDictData statusDictData;
    private SysDictData sourceDictData;
    private Customer customer;
    private  Material material;
    private Supplier supplier;

}
